Skip to content

Conversation

@WillieRuemmele
Copy link
Contributor

@WillieRuemmele WillieRuemmele commented Dec 19, 2025

What does this PR do?

What issues does this PR fix or reference?

consumes forcedotcom/agents#202
@W-20812411@

@WillieRuemmele WillieRuemmele changed the title Wr/refactor Wr/refactor @W-20812411@ Jan 13, 2026
@WillieRuemmele WillieRuemmele marked this pull request as ready for review January 13, 2026 22:43
@WillieRuemmele WillieRuemmele requested a review from a team as a code owner January 15, 2026 22:42
const isWindows = process.platform === 'win32';
const waitTime = isWindows ? 10 * 60 * 1000 : 5 * 60 * 1000; // 10 minutes on Windows, 5 minutes otherwise
console.log(`waiting ${waitTime / 1000 / 60} minutes for org to be ready (platform: ${process.platform})`);
await sleep(waitTime);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than a hard wait time of 5 or 10 minutes, I'd rather have a threshold where we stop trying to do the setup. This will allow faster test runs. I think we can keep this for now, but if it causes a problem we should revisit this strategy.

execCmd<AgentPublishAuthoringBundleResult>(
`agent publish authoring-bundle --api-name ${invalidApiName} --target-org ${getUsername()} --json`,
{ ensureExitCode: 1 }
{ ensureExitCode: 2 }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know why this is returning 2?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we call this.error(errormessage) in the command, which has an exit code 2...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants